import request from '@u/request'

// 获取停车场信息
const fetchParking= (params = {}) => {
  return request.get('/partLists', {params})
}
// 添加停车场信息
const addParkingSpace = (params = {}) => (
  request.post('/addFood', params)
)
// 修改停车场信息
const updateParkingSpace = (params = {}) => (
  request.put('/updatePart', params)
)
// 删除停车场信息
const delParkingSpace = (params = {}) => (
  request.delete('/delPart', params)
)
export {fetchParking,addParkingSpace,updateParkingSpace,delParkingSpace}